import java.util.Scanner;

public class demo06 {
    public static void main(String[] args) {
//        最长递增
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int[] arr=new int[n];
        for (int i = 0; i < n; i++) {
            arr[i]=sc.nextInt();
        }
        int count=1;
        int max=0;
        for (int i = 0; i < n-1; i++) {
            if(arr[i]<arr[i+1]){
                count++;
            }else{
                max=Math.max(max,count);
                count=1;
            }
        }
        System.out.println(max);
    }
}
